/**
 * @Author：ming
 * @Date：2023/10/27 11:38 PM
 * @Filename：Hot136
 */

/**
 * @author ming
 */
public class Hot136 {
    public int singleNumber(int[] nums) {
        int num = 0;
        for (int i = 0; i < nums.length; i++) {
            num ^= nums[i];
        }
        return num;
    }
}
